home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / maximus / ranmax11.zip / SAMPLE.MEC < prev    next >
INI File  |  1994-05-09  |  2KB  |  71 lines

  1. [comment *******************************************************************
  2.  
  3. Documentation:
  4.  
  5. This sample will call RANMAX.EXE with parameters using the DOS 
  6. mecca command with parameters.   It will then link the newly created
  7. ranmax.bbs file which was created in and will be executed from the 
  8. current directory.
  9.  
  10. In this example, the second parameter "4" asked RANMAX to generate
  11. a random number between 1 and 4 and add that to the name "samp" to get
  12. the following results:
  13.  
  14. When linked, ranmax.bbs will display one of the following files in the
  15. Misc\ directory.  Typically, your default directory will be \MAX and your
  16. SAMPxx.BBS files will be in the \MAX\MISC directory:
  17.  
  18. SAMP01.BBS
  19. SAMP02.BBS
  20. SAMP03.BBS
  21. SAMP04.BBS
  22.  
  23. Limitations:
  24.  
  25.        - The first parameter must be from 1 to 6 characters in length.
  26.        
  27.        - The second parameter must be a number from 1 to 99.
  28.  
  29. In effect, the following files could be displayed using the proper command
  30. line parameters:
  31.  
  32. D87.BBS
  33. SCREEN07.BBS
  34. PIC02.BBS
  35.  
  36. et cetera.
  37.  
  38. now, for the example:
  39.  
  40. Compile this file and the four example "SAMPxx.MEC" files and the SAMPLE.MEC
  41. file and place all five in your MISC\ directory.  Place RANMAX.EXE somewhere 
  42. in your path, preferably in your \BBS or \MAX directory.  Then display 
  43. SAMPLE.BBS several times with either ORACLE.EXE or from within your BBS 
  44. to see this small demonstration of the effect.
  45.  
  46. For full syntax information, type "RANMAX" at any prompt.
  47. ****************************************************************************]
  48. [white]--------------------------------------------------[grey]
  49. [dos]ranmax samp 4
  50. [link]ranmax
  51. [White]--------------------------------------------------
  52.  
  53. [blue]Please pass this utility on to a friend, compliments of HammerWare(tm).
  54.  
  55. Your author is David Cox, 1:138/225@fidonet.org.  Your comments are welcome.
  56. Concept by Shay Rockman, with included snappy comments during creation.
  57. [grey]
  58. [comment *******************************************************************
  59.  
  60. If you were wondering:
  61.  
  62. NOTE:  The random number generator is "seeded" with the seconds from GMT
  63. January 1, 1970 and never will be seeded the same, so you in effect have a
  64. quite random selection when you implement this program in maintenance, a
  65. *.BBS command file, or whatever.
  66.  
  67. HammerNet - file request "HAMMER" from 1:138/225 or 1:138/251
  68. ****************************************************************************]
  69.  
  70.  
  71.